<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                        aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel">评分详情</h4>
            </div>
            <div class="modal-body">
                <div style="margin-bottom: 25px">
                    <span style="font-size: 18px; font-weight: 600">风险等级评分：<span id="securityScore"></span></span>
                    <div style="margin-top: 5px">
                        <span id="securityDetail"></span>
                    </div>
                </div>
                <div>
                    <span style="font-size: 18px; font-weight: 600">重要等级评分：<span id="importantScore"></span></span>
                    <div>
                        <span id="importantDetail"></span>
                    </div>
                </div>
            </div>

        </div>
    </div>
</div>

<div class="container-fluid">
    <div style="margin: 10px">
        <div class="row">
            <div class="col-sm-12 col-md-12 main" style="float: right">
                <form class="form-inline">
                    <div class="form-group">
                        <label for="task">任务名/id：</label>
                        <input class="form-control" ng-model="vm.p.task" id="task">
                    </div>
                    <div class="form-group">
                        <label for="relationType">依赖方式：</label>
                        <select class="form-control" ng-model="vm.p.relationType" id="relationType">
                            <option value='up'>上级</option>
                            <option value='down'>下级</option>
                        </select>
                    </div>
                    <button id="refreshTable" type="button" class="btn btn-default">
                        <span class="glyphicon glyphicon-refresh" aria-hidden="true"></span> 搜索
                    </button>
                    <button id="showScore" type="button" class="btn btn-default">
                        查看评分
                    </button>
                </form>
                <div id="toolbar">

                </div>
                <table id="list_table" class="table table-condensed " data-toolbar="#toolbar" data-search="true"
                       data-show-columns="true" data-pagination="true" data-search-align="left" data-buttons-align="left"
                       data-toolbar-align="right" data-side-pagination="client" data-cache="false"
                       data-loading-template="loadingTemplate">
                    <thead>
                    <tr>
                        <th data-field="taskId" data-sortable="true">任务id</th>
                        <th data-field="taskName" data-sortable="true">任务名称</th>
                        <th data-field="manager" data-sortable="true">负责人</th>
                        <th data-field="lvl" data-sortable="true">依赖层级</th>
                        <th data-field="importantLvl"  data-sortable="true">重要等级</th>
                        <th data-field="manageOrg"  data-sortable="true">组织</th>
                        <th data-field="path"  data-sortable="true">依赖路径</th>
                        <th data-field="createTime"  data-sortable="true">创建时间</th>
                        <th data-field="updateTime"  data-sortable="true">修改时间</th>
                    </tr>
                    </thead>
                </table>

            </div>
        </div>
    </div>
</div>
